FROM jenkins/jenkins:lts-jdk8

USER root

RUN cd /usr/local
add ./node-v14.15.1 .
RUN echo "export NODE_HOME=/usr/local/node-v14.15.1" >> /etc/profile
RUN echo "export PATH=$PATH:$NODE_HOME/bin" >> /etc/profile
RUN npm config set registry "https://registry.npm.taobao.org"
RUN npm install -g yarn
RUN yarn config set registry https://registry.npm.taobao.org
RUN npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/


EXPOSE 8080
